GM.Name = "Metastrike"
GM.Author = "Suppercut"
GM.Email = "headinjurygames1@gmail.com"
GM.Website = "um"
GM.Version = "008 Alpha"
GM.VersionTag = "008a"
GM.Edition = "Everything you wanted and didn't want"

GM.TeamBased=true
GM.AllowAutoTeam=true

TEAM_ADMIN = 1
TEAM_MBAGS = 2
TEAM_HAZARD = 3

function GM:CreateTeams()

	team.SetUp( TEAM_ADMIN, "Administrators", Color( 70, 230, 70 ), true )
	team.SetSpawnPoint( 1, { "info_player_counterterrorist", "info_player_combine" } )

	team.SetUp( TEAM_MBAGS, "Mingebags", Color( 230, 150, 70 ), true )
	team.SetSpawnPoint( 2, { "info_player_terrorist", "info_player_rebel" } )

	team.SetUp( TEAM_HAZARD, "Hazards", Color( 255, 0, 0 ), false )
	team.SetSpawnPoint( 3, { "info_player_terrorist", "info_player_rebel" } )

end

function GM:MSCheckForMod(mod)
	if CLIENT then
		if CMod1==mod or CMod2==mod or CMod3==mod then return true end
	else
		if GetGlobalString("ms_mod1","---")==mod or GetGlobalString("ms_mod2","---")==mod or GetGlobalString("ms_mod3","---")==mod then return true end
	end
	return false
end

function GM:MSGetMod(mod)
	if CLIENT then
		if mod==1 then return CMod1 end
		if mod==2 then return CMod2 end
		if mod==3 then return CMod3 end
	else
		if mod==1 then return GetGlobalString("ms_mod1","---") end
		if mod==2 then return GetGlobalString("ms_mod2","---") end
		if mod==3 then return GetGlobalString("ms_mod3","---") end
	end
end

function GM:PlayerFootstep( ply, vPos, iFoot, strSoundName, fVolume, pFilter )
	if GAMEMODE:MSCheckForMod("Silent Footsteps") then return true end
end